package com.campus.app.mapper;

import com.campus.commons.entity.Class;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 班级表 Mapper 接口
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
@Repository
public interface ClassMapper extends BaseMapper<Class> {
    /**
     * 根据id删除 班级
     * @author 一行琉璃
     * @param id
     * @return
     */
    int delClassByid(int id);

    /**
     * 更新class
     * @Author 一行琉璃
     * @param id
     * @param className
     * @param creatTime
     * @param semesterName
     * @param stipulate
     * @param teacherid
     * @param lifeteacherid
     * @return
     */
    int updateClass_xml(int id,String className,String creatTime,String semesterName,String
            stipulate,int teacherid,int lifeteacherid);

    /**
     * 添加class
     * @autho 一行琉璃
     * @param className
     * @param creatTime
     * @param semesterid
     * @param stipulate
     * @param teacherid
     * @param lifeteacherid
     * @return
     */
    int addClass_xml(String className,String creatTime,int semesterid,String
            stipulate,int teacherid,int lifeteacherid);
}